﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BulletSharp;
using BulletSharp.Math;
using Painter3D.RenderSys.DebugDrawer;

namespace Painter3D.PhysicalSys
{
    class BulletDebugDrawer : BulletSharp.DebugDraw
    {
        public override DebugDrawModes DebugMode
        {
            get; set;
        }

        public override void Draw3DText(ref Vector3 location, string textString)
        {
            //throw new NotImplementedException();
        }

        public override void DrawLine(ref Vector3 from, ref Vector3 to, ref Vector3 color)
        {
            DebugDrawer.instance.drawLine(from.Convert2TK(), to.Convert2TK(), color.Convert2TK());
        }

        public override void ReportErrorWarning(string warningString)
        {
            Console.WriteLine(warningString);
            //throw new NotImplementedException();
        }
    }
}
